/*
 * @Author: 可以清心
 * @Description: 
 * @Date: 2023-05-19 14:36:49
 * @LastEditTime: 2023-06-12 18:06:08
 */
import Vue from 'vue'
import 'normalize.css'
import less from 'less'
import axios from 'axios'
import App from './App.vue'

Vue.config.productionTip = false

Vue.use(less)

// 测试注释
let scriptNode = document.createElement('script');
let paths = location.href.split('/app/');

if(paths && paths.length){
  axios.defaults.baseURL = paths[0];
  let url = paths[0] + '/app/config/env.tmpl.js';
  scriptNode.setAttribute('src', url);
  document.querySelector('head').appendChild(scriptNode);

  scriptNode.onload = function(){
    new Vue({
      render: h => h(App),
    }).$mount('#app')
  }
}
// 测试注释


// 生产注释
// new Vue({
//   render: h => h(App),
// }).$mount('#app')
// 生产注释